home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AGA Toolkit '97
/
The AGA Toolkit '97.iso
/
text
/
misc
/
port
/
string
/
strlen.s
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1996-09-07
|
209 b
|
20 lines
XDEF StrLen
; StrLen() - Calculates the length of a string in A0.
; Result:
; D0 = Length of the string.
StrLen:
moveq #0,d0
.Loop:
tst.b (a0)+
bne.b .Longer
rts
.Longer:
addq.l #1,d0
bra.b .Loop